package com.tiger.cmpeb.sample5;

public abstract class SubjectBean implements javax.ejb.EntityBean {
    private javax.ejb.EntityContext entityContext = null;
    
    public abstract Integer getSubjectCode();
    public abstract void setSubjectCode(Integer subjectCode);
    public abstract String getName();
    public abstract void setName(String name);
    public abstract java.util.Collection getStudent();
    public abstract void setStudent(java.util.Collection student);
    
    public Integer ejbCreate(Integer subjectCode, String name)
    throws javax.ejb.CreateException {
        setSubjectCode(subjectCode);
        setName(name);
        return subjectCode;
    }
    
    public void ejbPostCreate(Integer subjectCode, String name) {
    }
    
    public void setEntityContext(javax.ejb.EntityContext entityContext) {
        this.entityContext = entityContext;
    }
    
    public void unsetEntityContext() {
        this.entityContext = null;
    }
    
    public void ejbStore() {}
    
    public void ejbActivate() {}
    
    public void ejbPassivate() {}
    
    public void ejbLoad() {}
    
    public void ejbRemove() {}
}
